<div class='fui-page fui-page-current'>
	<div class='fui-content member-page'>
			<div style="margin:0.5rem;">
					<div class="memlogo-area" style="background: #55bd47;margin-bottom:0.5rem">
						<div class="memlogo">
							<img ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}">
						</div>
						<div class="name"><div style="max-width:4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">{{pagedata.member.nickname || '匿名'}}</div><span class="label label-warning">{{pagedata.level.title || '默认等级'}}</span></div>
						<br>
						<div class="name">{{pagedata.member.mobile || '无手机号'}}</div>
						<div class="code">
							<div class="jylabel jylabel-info" href="javascript:;" ng-click="access_json('jy_robshop/team.down/')" style="border: 1px solid #fff;color:#fff;">{{pagedata.teampage.agent_tagent||'我的下线'}}</div>
						</div>
						<div class="bot">
							<div class="jy-2">
							<h5 href="javascript:;">产生分润</h5>
							<h2 style="margin-top:0">{{pagedata.mymember.getfee || '0.00'}}</h2>
							</div>
							<div class="jy-2" style="margin-top:1rem">
								<span class="r-f label label-info" style="font-size:0.65rem;background: none;border: 1px solid #fff;color:#fff;" href="javascript:;" ng-click="access_json('jy_robshop/team.order/')"><i class="icon icon-dixiaofei"></i> 查看记录</span>
							</div>
						</div>
					</div>
					<div class="fui-cell-group">
						<div class="fui-cell"style="height: 2.85rem;">
							<div class="fui-cell-text">我的邀请码：{{pagedata.member.mid}}
							</div>
							<div ng-if="main.isapp!=1" class="fui-cell-remark" style="color:red" href="javascript:;" ng-click="access_json('jy_robshop/team.qrcode/')"></div>
						</div>
						<div class="fui-cell"style="height: 2.85rem;">
							<div class="fui-cell-text">可结算收益：{{pagedata.data.commission_1_1}}
							</div>
							<div class="fui-cell-remark" style="color:red" href="javascript:;" ng-click="pagedata.showtixian=true">
								去结算
							</div>
						</div>
					</div>
					<div class="fui-icon-group noborder col-2" style="background:#fff">
							<div class="fui-icon-col-sm external" style="margin:0" href="javascript:;" ng-click="access_json('jy_robshop/team.down/')">
								<div>
									<div class="text bold" style="line-height:1.6rem;font-size:1rem">{{pagedata.mymember.teamnum || '0'}}人</div>
									<div class="subtitle" style="color: #666;">团队人数</div>
								</div>
							</div>
							<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class="text bold" style="line-height:1.6rem;font-size:1rem">￥{{pagedata.mymember.order_price || '0.00'}}</div>
									<div class="subtitle" style="color: #666;">团队总参与额</div>
								</div>
							</div>
							<div class="fui-icon-col-sm external" style="margin:0" href="javascript:;" ng-click="access_json('jy_robshop/canlog/')">
								<div>
									<div class="text bold" style="line-height:1.6rem;font-size:1rem">￥{{pagedata.mymember.my_zfee || '0.00'}}</div>
									<div class="subtitle" style="color: #666;">我抢中总金额</div>
								</div>
							</div>
							<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class="text bold" style="line-height:1.6rem;font-size:1rem">￥{{pagedata.mymember.team_zfee || '0.00'}}</div>
									<div class="subtitle" style="color: #666;">团队抢中总金额</div>
								</div>
							</div>
					</div>
					<div class="fui-icon-group noborder col-2" style="background:#fff">
							<div class="fui-icon-col-sm external" style="margin:0" href="javascript:;" ng-click="access_json('jy_robshop/team.order/')">
								<div>
									<div class="text bold" style="line-height:1.6rem;font-size:1rem">{{pagedata.mymember.getfee || '0'}}</div>
									<div class="subtitle" style="color: #666;">总团收益</div>
								</div>
							</div>
							<div class="fui-icon-col-sm external" style="margin:0" href="javascript:;" ng-click="access_json('jy_robshop/team.order//type=1')">
								<div>
									<div class="text bold" style="line-height:1.6rem;font-size:1rem">{{pagedata.mymember.getfee1 || '0.00'}}</div>
									<div class="subtitle" style="color: #666;">直推抢中收益</div>
								</div>
							</div>
							<div class="fui-icon-col-sm external" style="margin:0" href="javascript:;" ng-click="access_json('jy_robshop/team.order//type=2')">
								<div>
									<div class="text bold" style="line-height:1.6rem;font-size:1rem">{{pagedata.mymember.getfee2 || '0.00'}}</div>
									<div class="subtitle" style="color: #666;">直推抢拍收益</div>
								</div>
							</div>
							<div class="fui-icon-col-sm external" style="margin:0" href="javascript:;" ng-click="access_json('jy_robshop/team.order//type=3')">
								<div>
									<div class="text bold" style="line-height:1.6rem;font-size:1rem">{{pagedata.mymember.getfee3 || '0.00'}}</div>
									<div class="subtitle" style="color: #666;">平一级收益</div>
								</div>
							</div>
							<div class="fui-icon-col-sm external" style="margin:0" href="javascript:;" ng-click="access_json('jy_robshop/team.order//type=4')">
								<div>
									<div class="text bold" style="line-height:1.6rem;font-size:1rem">{{pagedata.mymember.getfee4 || '0.00'}}</div>
									<div class="subtitle" style="color: #666;">加权分红</div>
								</div>
							</div>
							<div class="fui-icon-col-sm external" style="margin:0" href="javascript:;" ng-click="access_json('jy_robshop/team.order//type=5')">
								<div>
									<div class="text bold" style="line-height:1.6rem;font-size:1rem">{{pagedata.mymember.getfee5 || '0.00'}}</div>
									<div class="subtitle" style="color: #666;">商户带货分红</div>
								</div>
							</div>
					</div>
			</div>
			<div class="fixed-title" style="margin-top:1rem">
							 <span class="befirst spacing">
								 <span class="icon icon-fengexianzuo" style="font-size:2rem;color:#666"></span>
							 </span> 
							 <span class="title-text bold" style="color:#333;line-height:2rem">收益日志</span> 
							 <span class="spacing">
								 <span class="icon icon-fengexianyou" style="font-size:2rem;color:#666"></span>
							 </span>
			</div>
			<div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
				<i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
			</div>
			<div style="padding:0 0.5rem">
			<div class='fui-list-group container' ng-show="pagedata.list.length>0" >
				<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
					<div class="fui-list-inner">
						<div class='title'>
							<span class="label label-success">{{item.typetitle}}</span>
							<span class="red" style="margin-left:0.3rem">{{item.jifen}}个</span>
						</div>
						<div class='gray'>{{item.createtime}}</div>
					</div>
					<div class='fui-list-angle'>
						<span class='fui-label fui-label-default gray' style="background:#f2f2f2;border-radius:0.2rem;">{{item.statustitle}}</span>
					</div>
				</div>
			</div>
			</div>
	</div>
	<div ng-include="sys_html('_footer')"></div>
</div>
<div ng-if="pagedata.showtixian" class="popup">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showtixian=false"></i>
			<div class='fui-content' >
				<div class='fui-cell-group fui-cell-group-o' style="margin:0">
					<div class='fui-cell-title'>提现金额
						<small ng-if="pagedata.pluginset.balance_money>0">提现额度最小为: <span class='text-danger'>￥{{pagedata.pluginset.balance_money}}</span></small>
						<span href="javascript:;" ng-click="access_json('jy_robshop/team.balance/')" class='label label-success'>
						查看记录
						</span>
					</div>
					<div class='fui-cell'>
						<div class='fui-cell-label big' style='width:auto;'>￥</div>
						<div class='fui-cell-info'>
						{{pagedata.data.commission_1_1}}
						</div>
					</div>
					<div class="fui-cell">
						<div class="fui-cell-label" style="width: 120px;"><span class="re-g">提现方式</span></div>
						<div class="fui-cell-info">
							<select id="applytype" ng-model="pagedata.post.pay_type">
								<option ng-repeat="(k,title) in pagedata.pay_types" value="{{k}}" ng-selected="pagedata.post.pay_type==k">{{title}}</option>
							</select>
						</div>
						<div class="fui-cell-remark"></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='alipay' || pagedata.post.pay_type =='union'" class="fui-cell ab-group">
						<div class="fui-cell-label" style="width: 120px;">真实姓名</div>
						<div class="fui-cell-info"><input type="text" id="realname" name="realname" ng-model="pagedata.post.realname" class='fui-input' value="{{pagedata.post.realname}}" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='alipay'" class="fui-cell alipay-group">
						<div class="fui-cell-label" style="width: 120px;">支付宝帐号</div>
						<div class="fui-cell-info">
						<input type="text" id="alipay" name="alipay" class='fui-input' ng-model="pagedata.post.alipay" value="{{pagedata.post.alipay}}" max="25"/>
						</div>
					</div>
					<div ng-if="pagedata.post.pay_type =='alipay'" class="fui-cell alipay-group">
							<div class="fui-cell-label" style="width: 120px;">确认帐号</div>
							<div class="fui-cell-info"><input type="text" id="alipay1" ng-model="pagedata.post.alipay1" name="alipay1" class='fui-input' value="{{pagedata.post.alipay1}}" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='union'" class="fui-cell bank-group" >
							<div class="fui-cell-label" style="width: 120px;">所属银行</div>
							<div class="fui-cell-info">
								<input type="text" name="bankname" class='fui-input' ng-model="pagedata.post.bankname" value="{{pagedata.post.bankname}}"/>
							</div>
					</div>
					<div ng-if="pagedata.post.pay_type =='union'" class="fui-cell bank-group">
							<div class="fui-cell-label" style="width: 120px;">银行卡号</div>
							<div class="fui-cell-info"><input type="text" id="bankcard" name="bankcard" class='fui-input' ng-model="pagedata.post.bankcard" value="{{pagedata.post.bankcard}}" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='union'" class="fui-cell bank-group">
							<div class="fui-cell-label" style="width: 120px;">确认卡号</div>
							<div class="fui-cell-info"><input type="text" id="bankcard1" name="bankcard1" class='fui-input' ng-model="pagedata.post.bankcard1" value="{{pagedata.post.bankcard1}}" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type!='credit'" class='fui-cell-title disabled'>提现手续费为 <text class='text-danger'> {{pagedata.pluginset.balance_per || 0}}</text>%</div>
					<div ng-if="pagedata.post.pay_type!='credit'" class='fui-cell-title charge-group disabled' style="padding-top:0">本次提现将扣除手续费 ￥<text class='text-danger'> {{pagedata.data.service_money || '0.00'}}</text>
					</div>

					<div ng-if="pagedata.post.pay_type!='credit'" class='fui-cell-title charge-group disabled' style="padding-top:0">本次提现实际到账金额 ￥<text class='text-danger'> {{pagedata.data.cash_money || '0.00'}}</text>
					</div>
				</div>
				<a id='btn-next' class='btn btn-success block btn-submit' style="line-height:2rem" ng-click="post(pagedata.post,'/team.index/balance/')">提现</a>
			</div>
		</div>
	</div>
</div>
<script>
scope.tool.get_list('jy_robshop/team.index/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_robshop/team.index/getlist/');
}
</script>